home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 23 code / ProjectDrag 1.1b4 / Sources / ProjectDrag Sources / ExternalCheckIn.r < prev    next >
Encoding:
Text File  |  1995-07-11  |  5.8 KB  |  206 lines  |  [TEXT/MPS ]

  1. /* ExternalCheckIn.r: External CheckIn applet resources for ProjectDrag
  2.  *
  3.  * A set of applets for drag and drop source control by Tim Maroney.
  4.  * See develop, issue 23 for details.
  5.  *
  6.  * Built on DropShell by Leonard Rosenthol, Stephan Somogyi, and Marshall Clow,
  7.  * and using the MoreFiles utilities by Jim Luther.
  8.  *
  9.  * This software is free, but don't modify and redistribute it without
  10.  * changing the status window to indicate your name and your changes!
  11.  */
  12.  
  13. #define SystemSevenOrLater 1
  14. #include "Types.r"
  15. #include "SysTypes.r"
  16. #include "BalloonTypes.r"
  17. #include "AEUserTermTypes.r"
  18.  
  19. include "ExternalCheckIn.rsrc";
  20.  
  21. /* First thing we need is the Finder Help Balloon */
  22. resource 'hfdr' (-5696) {
  23.     HelpMgrVersion, 0, 0, 0,
  24.     {
  25.         HMStringItem {
  26.             "Drag a non-Projector file onto this icon to check it in, "
  27.             "overwriting a checked-in file in the source folder. You "
  28.             "will be asked to find the file to overwrite."
  29.         },
  30.     }
  31. };
  32.  
  33.  
  34.  
  35. /* Menus & Menu Help Resources */
  36. resource 'MENU' (128, "Apple") { 128, textMenuProc, 0x7FFFFFFD, enabled, apple, 
  37.     {    /* array: 2 elements */
  38.         /* [1] */    "About External CheckIn…", noIcon, noKey, noMark, plain,
  39.         /* [2] */    "-", noIcon, noKey, noMark, plain
  40.     }
  41. };
  42.  
  43. resource 'MENU' (129, "File") { 129, textMenuProc, allEnabled, enabled, "File", 
  44.     {    /* array: 2 elements */
  45.         /* [1] */    "Check External File In…",    noIcon, "O", noMark, plain,
  46.         /* [2] */    "Quit",         noIcon, "Q", noMark, plain
  47.     }
  48. };
  49.  
  50. resource 'DITL' (128, purgeable) {
  51.     {    /* array DITLarray: 3 elements */
  52.         /* [1] */ {97, 198, 117, 270}, Button { enabled, "OK" }, 
  53.         /* [2] */ {8, 8, 87, 271}, StaticText { disabled,
  54.             "External CheckIn - ProjectDrag's applet for checking in files "
  55.             "from an external source. By Tim Maroney. " },
  56.         /* [3] */ {0, 0, 0, 0}, HelpItem { disabled, HMScanhdlg { 1 } } 
  57.     }
  58. };
  59.  
  60. /* Here are the STR#'s that the Help text is stored in! */
  61. resource 'STR#' (128,purgeable) {    /* help items for Apple Menu */
  62.     { /* array StringArray: 3 elements */
  63.         /* [1] */     "Everything you always wanted to know about External CheckIn, but were afraid to ask",
  64.         /* [2] */     "Click here to dismiss this dialog.",
  65.         /* [3] */     "This text describes the product, its author, and why!"
  66.     }
  67. };
  68.  
  69. resource 'STR#' (129,purgeable) {    /* help items for File Menu */
  70.     { /* array StringArray: ? elements */
  71.         /* [1] */    "Use this menu to check an external file in and to exit External CheckIn.",
  72.         /* [2] */     "Use this menu to check an external file in and to exit External CheckIn. "
  73.                       "This menu is unavailable now.",
  74.         /* [3] */     "Use this menu to check an external file in and to exit External CheckIn. "
  75.                     "This menu is unavailable until you respond to the alert box or dialog box.",
  76.         /* [4] */     "This command is unavailable until you respond to the alert box or dialog box.",
  77.         /* [5] */     "Use this command to check an external file in.",
  78.         /* [6] */     "Use this command to check an external file in. "
  79.                     "Not available now for some strange reason.",
  80.         /* [7] */     "Use this command to exit External CheckIn.",
  81.         /* [8] */     "Use this command to exit External CheckIn. "
  82.                     "Not available now for some strange reason."
  83.     }
  84. };
  85.  
  86. resource 'STR#' (200, purgeable) {    /* help info for the Error Dialog */
  87.     {    /* array StringArray: 3 elements */
  88.         /* [1] */    "Click here to dismiss this dialog.",
  89.         /* [2] */    "This text describes the error that occured.",
  90.         /* [3] */    "This error ID gives more specific details of the error."
  91.     }
  92. };
  93.  
  94. resource 'STR#' (2001, purgeable) {    /* progress info */
  95.     {    /* array StringArray: 1 element */
  96.         /* [1] */    "checking in “<1>”",
  97.         /* [2] */    "checking out “<1>”",
  98.         /* [3] */    "copying “<1>”"
  99.     }
  100. };
  101.  
  102. resource 'STR#' (2002, purgeable) {    /* stuff */
  103.     {    /* array StringArray: 1 element */
  104.         /* [1] */    "Please locate the Projector file you want to replace with “<1>”…",
  105.     }
  106. };
  107.  
  108. resource 'hmnu' (129, purgeable) {    /* File */
  109.     HelpMgrVersion, 0, 0, 0,
  110.     HMSkipItem {    /* no missing items */    },
  111.     {    /* array HMenuArray: 4 elements */
  112.         HMStringResItem {    /* Menu Title */
  113.             129, 1,
  114.             129, 2,
  115.             129, 3,
  116.             129, 4
  117.         },
  118.         HMStringResItem {    /* Open File… */
  119.             129, 5,
  120.             129, 6,
  121.             0, 0,
  122.             0, 0
  123.         },
  124.         HMStringResItem {    /* Quit */
  125.             129, 7,
  126.             129, 8,
  127.             0, 0,
  128.             0, 0
  129.         },
  130.     }
  131. };
  132.  
  133. resource 'BNDL' (128, purgeable) {
  134.     'pdec',
  135.     0,
  136.     {    /* array TypeArray: 2 elements */
  137.         /* [1] */
  138.         'FREF',
  139.         {    /* array IDArray: 2 elements */
  140.             /* [1] */ 0, 128,
  141.             /* [2] */ 1, 129
  142.         },
  143.         /* [2] */
  144.         'ICN#',
  145.         {    /* array IDArray: 2 elements */
  146.             /* [1] */ 0, 128,
  147.             /* [2] */ 1, 0
  148.         }
  149.     }
  150. };
  151.  
  152. data 'pdec' (0) {
  153.     "External CheckIn - Free software by Tim Maroney!"
  154. };
  155.  
  156. resource 'FREF' (128) { 'APPL', 0, "" }; 
  157. resource 'FREF' (129) { '****', 1, "" }; 
  158.  
  159.  
  160. /*
  161.     This is the KEY resource in supporting AEVTs - it is used by scripting/macro
  162.     systems such as Control Tower & QuicKeys in determing what events an application
  163.     supports.
  164.     
  165.     In this one, we simply tell it we support the required events, since that is all
  166.     we do.  If you add additional events, you MUST consult the AETE documentation
  167.     distributed by Apple.  Make sure you find the RELEASE NOTES, since this resource
  168.     has undergone a NUMBER of chanes.
  169. */
  170. resource 'aete' (0, "Apple Events Terminology") {
  171.  
  172.     0x00,            /* major version number in BCD */
  173.     0x90,            /* minor version number in BCD. From 7/9/91 version of AEUT docs */
  174.     english,        /* descriptions are in english */
  175.     roman,            /* use roman language script system */
  176.     
  177.     {    /* array Suites: 1 elements */
  178.     
  179.         /*******************************************************
  180.         [1] -- The part that show we do the required AppleEvents
  181.         *******************************************************/
  182.  
  183.         "Required Suite",
  184.         "Events that every application should support",
  185.         'reqd',
  186.         1,            /* suite level */
  187.         1,            /* suite version */
  188.         
  189.         {
  190.             /* array Events: 0 elements */
  191.         },
  192.         
  193.         {
  194.             /* array Classes: 0 elements */
  195.         },
  196.         
  197.         {
  198.             /* array ComparisonOps: 0 elements */
  199.         },
  200.         
  201.         {
  202.             /* array Enumerations: 0 elements */
  203.         },
  204.     }
  205. };
  206.